import HttpRequest from '@/utils/HttpRequest'

//活动逻辑
const appData = {
	// 砍价
	bargain:{
		//活动详情
		getActivityDetail(data, callback){
			var url = '/bargain/getActivityDetail';
		
			HttpRequest.post(url, data, callback, 'json', {loading: true, toast: false})					
		},
		//我的进度
		getMyProcess(data, callback){
			var url = '/bargain/getMyProcess';
		
			HttpRequest.post(url, data, callback, 'json', {loading: true, toast: false})					
		},
		//帮忙砍价
		helpCutMoney(data, callback){
			var url = '/bargain/cutMoney';
		
			HttpRequest.post(url, data, callback, 'json', {loading: true, toast: true})					
		},
		getUserProcess(data, callback){
			var url = '/bargain/getUserProcess';
		
			HttpRequest.post(url, data, callback, 'json', {loading: true, toast: false})					
		},
	},
}

import baseApi from './baseApi';
const appApi = Object.assign(appData, baseApi) 

export default appApi